//
//  Extension+TXFLab.swift
//  weibo飞飞
//
//  Created by 田侠飞 on 16/6/29.
//  Copyright © 2016年 田侠飞. All rights reserved.
//

import UIKit

extension UILabel{

    convenience init(textColor: UIColor,textFont: CGFloat,maxWith: CGFloat = 0){
        
        self.init()
        
        self.textColor = textColor
        
        self.font = UIFont.systemFontOfSize(textFont)
        
        if maxWith > 0 {
        self.preferredMaxLayoutWidth = maxWith
            
            self.numberOfLines = 0
        
        
        }
 
    }

}






